package xyz.jangle.service;

import java.util.Map;

import xyz.jangle.model.BsUser;

public interface BsUserService {
	/**
	 * 
	 * @param demo
	 * @return
	 */
	public Map<String, Object> selectPage(BsUser demo);

	/**
	 * 
	 * @param record
	 * @return
	 */
	public Map<String, Object> selectByPrimaryKey(BsUser record);

	/**
	 * 
	 * @param record
	 * @return
	 */
	public Map<String, Object> insertOrUpdate(BsUser record);

	/**
	 * 批量删除
	 * @param record
	 * @return
	 */
	public Map<String, Object> batchDeleteByPrimaryKey(BsUser record);

	
	public Map<String, Object> deleteByPrimaryKey(BsUser record);

	/**
	 * 登录
	 * @param code
	 * @param password
	 * @return
	 */
	public Map<String, Object> login(String code, String password);

	/**
	 * 注销
	 * @return
	 */
	public Map<String, Object> logout();

	/**
	 * 查询登录状态
	 * @return
	 */
	public Map<String, Object> status();
	/**
	 * 查询账户是否可用（true为可用，false为已存在、不可用）
	 * @param code
	 * @return
	 */
	public Map<String, Object> valid(String code);

}
